# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyppeteer-stealth
_pkgname=pyppeteer_stealth
pkgver=2.7.4
pkgrel=5
pkgdesc='A plugin for pyppeteer to prevent detection.'
arch=('any')
url='https://pypi.org/project/pyppeteer-stealth/'
license=('MIT')
depends=('python' 'python-pyppeteer')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/pyppeteer_stealth-$pkgver.tar.gz")
sha512sums=('46baeec99bdb2a012711d7657f274a32ee311258c8ac0c5239e924bf4d55677017bbedd6974eac85084dc61d9eecc59883ae5f7aaac2af40ea543d4a27e57bf7')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

